home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / ROMDefs.a < prev    next >
Encoding:
Text File  |  1996-05-06  |  10.0 KB  |  249 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ROMDefs.a
  3. ;
  4. ;    Contains:    NuBus card ROM Definitions.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2.1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__ROMDEFS__') = 'UNDEFINED' THEN
  21. __ROMDEFS__ SET 1
  22.  
  23.  
  24. appleFormat                        EQU        1                    ;Format of Declaration Data (IEEE will assign real value)
  25. romRevision                        EQU        1                    ;Revision of Declaration Data Format
  26. romRevRange                        EQU        9                    ;Revision of Declaration Data Format [1..9]
  27. testPattern                        EQU        1519594439            ;FHeader long word test pattern
  28. sCodeRev                        EQU        2                    ;Revision of code (For sExec)
  29. sExec2                            EQU        2
  30. sCPU68000                        EQU        1                    ;CPU type = 68000
  31. sCPU68020                        EQU        2                    ;CPU type = 68020
  32. sCPU68030                        EQU        3                    ;CPU type = 68030
  33. sCPU68040                        EQU        4                    ;CPU type = 68040
  34. sMacOS68000                        EQU        1                    ;Mac OS, CPU type = 68000
  35. sMacOS68020                        EQU        2                    ;Mac OS, CPU type = 68020
  36. sMacOS68030                        EQU        3                    ;Mac OS, CPU type = 68030
  37. sMacOS68040                        EQU        4                    ;Mac OS, CPU type = 68040
  38. board                            EQU        1                    ;Board sResource - Required on all boards
  39. displayVideoAppleTFB            EQU        16843009            ;Video with Apple parameters for TFB card.
  40. displayVideoAppleGM                EQU        16843010            ;Video with Apple parameters for GM card.
  41. networkEtherNetApple3Com        EQU        33620225            ;Ethernet with apple parameters for 3-Comm card.
  42. testSimpleAppleAny                EQU        -2147417856            ;A simple test sResource.
  43. endOfList                        EQU        255                    ;End of list
  44. defaultTO                        EQU        100                    ;100 retries.
  45.  
  46. ; sResource flags for sRsrc_Flags 
  47. fOpenAtStart                    EQU        1                    ; set => open the driver at start time, else do not 
  48. f32BitMode                        EQU        2                    ; set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) 
  49.  
  50. sRsrcType                        EQU        1                    ;Type of sResource
  51. sRsrcName                        EQU        2                    ;Name of sResource
  52. sRsrcIcon                        EQU        3                    ;Icon
  53. sRsrcDrvrDir                    EQU        4                    ;Driver directory
  54. sRsrcLoadDir                    EQU        5                    ;Load directory
  55. sRsrcBootRec                    EQU        6                    ;sBoot record
  56. sRsrcFlags                        EQU        7                    ;sResource Flags
  57. sRsrcHWDevId                    EQU        8                    ;Hardware Device Id
  58. minorBaseOS                        EQU        10                    ;Offset to base of sResource in minor space.
  59. minorLength                        EQU        11                    ;Length of sResource’s address space in standard slot space.
  60. majorBaseOS                        EQU        12                    ;Offset to base of sResource in Major space.
  61. majorLength                        EQU        13                    ;Length of sResource in super slot space.
  62. sRsrcTest                        EQU        14                    ;sBlock diagnostic code
  63. sRsrccicn                        EQU        15                    ;Color icon
  64. sRsrcicl8                        EQU        16                    ;8-bit (indexed) icon
  65. sRsrcicl4                        EQU        17                    ;4-bit (indexed) icon
  66. sDRVRDir                        EQU        16                    ;sDriver directory
  67. sGammaDir                        EQU        64                    ;sGamma directory
  68. sRsrcVidNames                    EQU        65                    ;Video mode name directory
  69. sRsrcDock                        EQU        80                    ;spID for Docking Handlers
  70. sDiagRec                        EQU        85                    ;spID for board diagnostics
  71. sVidAuxParams                    EQU        123                    ;more video info for Display Manager -- timing information
  72. sDebugger                        EQU        124                    ;DatLstEntry for debuggers indicating video anamolies
  73. sVidAttributes                    EQU        125                    ;video attributes data field (optional,word)
  74. fLCDScreen                        EQU        0                    ; bit 0 - when set is LCD, else is CRT
  75. fBuiltInDisplay                    EQU        1                    ;      1 - when set is built-in (in the box) display, else not
  76. fDefaultColor                    EQU        2                    ;      2 - when set display prefers multi-bit color, else gray
  77. fActiveBlack                    EQU        3                    ;      3 - when set black on display must be written, else display is naturally black
  78. fDimMinAt1                        EQU        4                    ;      4 - when set should dim backlight to level 1 instead of 0
  79. fBuiltInDetach                    EQU        4                    ;      4 - when set is built-in (in the box), but detaches
  80. sVidParmDir                        EQU        126
  81. sSuperDir                        EQU        254
  82.  
  83. ; =======================================================================    
  84. ; sResource types                                                            
  85. ; =======================================================================    
  86. catBoard                        EQU        $0001                ;Category for board types.
  87. catTest                            EQU        $0002                ;Category for test types -- not used much.
  88. catDisplay                        EQU        $0003                ;Category for display (video) cards.
  89. catNetwork                        EQU        $0004                ;Category for Networking cards.
  90. catScanner                        EQU        $0008                ;scanners bring in data somehow
  91. catCPU                            EQU        $000A
  92. catIntBus                        EQU        $000C
  93. catProto                        EQU        $0011
  94. catDock                            EQU        $0020
  95. ;<Type>
  96. typeBoard                        EQU        $0000
  97. typeApple                        EQU        $0001
  98. typeVideo                        EQU        $0001
  99. typeEtherNet                    EQU        $0001
  100. typeStation                        EQU        $0001
  101. typeDesk                        EQU        $0002
  102. typeDSP                            EQU        $0004
  103. typeXPT                            EQU        $000B
  104. typeSIM                            EQU        $000C
  105. typeDebugger                    EQU        $0100
  106. type68000                        EQU        $0002
  107. type68020                        EQU        $0003
  108. type68030                        EQU        $0004
  109. type68040                        EQU        $0005
  110. type601                            EQU        $0025
  111. type603                            EQU        $002E
  112. typeAppleII                        EQU        $0015
  113. ;Driver Interface : <id.SW>
  114. drSwMacCPU                        EQU        0
  115. drSwAppleIIe                    EQU        $0001
  116. drSwApple                        EQU        1                    ;To ask for or define an Apple-compatible SW device.
  117. drSwMacsBug                        EQU        $0104
  118. ;Driver Interface : <id.SW><id.HW>
  119. drHwTFB                            EQU        1                    ;HW ID for the TFB (original Mac II) video card.
  120. drHw3Com                        EQU        1                    ;HW ID for the Apple EtherTalk card.
  121. drHwBSC                            EQU        3
  122. drHwGemini                        EQU        1
  123. drHwDeskBar                        EQU        1
  124. drHwATT3210                        EQU        $0001
  125. drHwBootBug                        EQU        $0100
  126. ; video hardware id's  - <catDisplay><typVideo>
  127. drHwRBV                            EQU        $0018
  128. drHwJMFB                        EQU        $0019
  129. drHwElsie                        EQU        $001A
  130. drHwTim                            EQU        $001B
  131. drHwDAFB                        EQU        $001C
  132. drHwGSC                            EQU        $001E
  133. drHwDAFBPDS                        EQU        $001F
  134. drHWVSC                            EQU        $0020
  135. drHwApollo                        EQU        $0021
  136. drHwSonora                        EQU        $0022
  137. drHwReserved2                    EQU        $0023
  138. drHwColumbia                    EQU        $0024
  139. drHwCivic                        EQU        $0025
  140. drHWPBLCD                        EQU        $0027
  141. drHWCSC                            EQU        $0028
  142. drHwJET                            EQU        $0029
  143. drHWMEMCjr                        EQU        $002A
  144. drHwValkyrie                    EQU        $002E
  145. drHwKeystone                    EQU        $002F
  146. drHWATI                            EQU        $0055
  147. ; other drHW id's for built-in functions
  148. drHwSonic                        EQU        $0110
  149. drHwMace                        EQU        $0114
  150. drHwDblExp                        EQU        $0001
  151. ; CPU board IDs - <catBoard> <typBoard> <0000> <0000>
  152. MIIBoardId                        EQU        $0010                ;Mac II Board ID
  153. ciVidBoardID                    EQU        $001F                ;Aurora25 board ID
  154. CX16VidBoardID                    EQU        $0020                ;Aurora16 board ID
  155. MIIxBoardId                        EQU        $0021                ;Mac IIx Board ID
  156. SE30BoardID                        EQU        $0022                ;Mac SE/30 Board ID
  157. MIIcxBoardId                    EQU        $0023                ;Mac IIcx Board ID
  158. MIIfxBoardId                    EQU        $0024                ;F19 board ID
  159. EricksonBoardID                    EQU        $0028                ;
  160. ElsieBoardID                    EQU        $0029                ;
  161. TIMBoardID                        EQU        $002A                ;
  162. EclipseBoardID                    EQU        $002B                ;
  163. SpikeBoardID                    EQU        $0033                ;
  164. DBLiteBoardID                    EQU        $0035                ;
  165. ZydecoBrdID                        EQU        $0036                ;
  166. ApolloBoardID                    EQU        $0038                ;
  167. PDMBrdID                        EQU        $0039                ;
  168. VailBoardID                        EQU        $003A                ;
  169. WombatBrdID                        EQU        $003B                ;
  170. ColumbiaBrdID                    EQU        $003C                ;
  171. CycloneBrdID                    EQU        $003D                ;
  172. CompanionBrdID                    EQU        $003E                ;
  173. DartanianBoardID                EQU        $0040                ;
  174. DartExtVidBoardID                EQU        $0046                ;
  175. HookBoardID                        EQU        $0047                ;Hook internal video board ID
  176. EscherBoardID                    EQU        $004A                ;Board ID for Escher (CSC)
  177. POBoardID                        EQU        $004D                ;Board ID for Primus/Optimus/Aladdin
  178. TempestBrdID                    EQU        $0050                ;Non-official Board ID for Tempest
  179. BlackBirdBdID                    EQU        $0058                ;Board ID for BlackBird
  180. BBExtVidBdID                    EQU        $0059                ;Board ID for BlackBird built-in external video
  181. YeagerBoardID                    EQU        $005A                ;Board ID for Yeager
  182. BBEtherNetBdID                    EQU        $005E                ;Board ID for BlackBird Ethernet board
  183. TELLBoardID                        EQU        $0065                ;Board ID for TELL (Valkyrie)
  184. MalcolmBoardID                    EQU        $065E                ;Board ID for Malcolm
  185. AJBoardID                        EQU        $065F                ;Board ID for AJ
  186. M2BoardID                        EQU        $0660                ;Board ID for M2
  187. OmegaBoardID                    EQU        $0661                ;Board ID for Omega
  188. ; other board IDs
  189. BoardIDDblExp                    EQU        $002F
  190. DAFBPDSBoardID                    EQU        $0037
  191. MonetBoardID                    EQU        $0048
  192. SacSONIC16BoardID                EQU        $004E
  193. SacSONIC32BoardID                EQU        $004F
  194. ; CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>
  195. drHWMacII                        EQU        $0001                ;Mac II hw ID
  196. drHwMacIIx                        EQU        $0002                ;Mac IIx hw ID
  197. drHWSE30                        EQU        $0003                ;Mac SE/30 hw ID
  198. drHwMacIIcx                        EQU        $0004                ;Mac IIcx hw ID
  199. drHWMacIIfx                        EQU        $0005                ;Mac IIfx hw ID
  200. drHWF19                            EQU        $0005                ;F19 hw ID
  201. sBlockTransferInfo                EQU        20                    ;general slot block xfer info
  202. sMaxLockedTransferCount            EQU        21                    ;slot max. locked xfer count
  203. boardId                            EQU        32                    ;Board Id
  204. pRAMInitData                    EQU        33                    ;sPRAM init data
  205. primaryInit                        EQU        34                    ;Primary init record
  206. timeOutConst                    EQU        35                    ;Time out constant
  207. vendorInfo                        EQU        36                    ;Vendor information List. See Vendor List, below
  208. boardFlags                        EQU        37                    ;Board Flags
  209. secondaryInit                    EQU        38                    ;Secondary init record/code
  210. ; The following Id's are associated with all CPU sResources.
  211. MajRAMSp                        EQU        129                    ;ID of Major RAM space.
  212. MinROMSp                        EQU        130                    ;ID of Minor ROM space.
  213. vendorId                        EQU        1                    ;Vendor Id
  214. serialNum                        EQU        2                    ;Serial number
  215. revLevel                        EQU        3                    ;Revision level
  216. partNum                            EQU        4                    ;Part number
  217. date                            EQU        5                    ;Last revision date of the card
  218.  
  219. testByte                        EQU        32                    ;Test byte.
  220. testWord                        EQU        33                    ;0021
  221. testLong                        EQU        34                    ;Test Long.
  222. testString                        EQU        35                    ;Test String.
  223.  
  224. ; sResource List. Category: Display        Type: Video 
  225. ; The following Id's are common to all Mode sResources in Display_Video 
  226. ; functional sResources. 
  227. mBlockTransferInfo                EQU        5                    ; slot block xfer info PER MODE 
  228. mMaxLockedTransferCount            EQU        6                    ; slot max. locked xfer count PER MODE 
  229.  
  230. ;*************************************************************
  231. ;Macros
  232. ;*************************************************************
  233. ;=============================================================
  234. ; Offset List Entry
  235. ;=============================================================
  236.                   MACRO
  237.                   OSLstEntry  &Id,&Offset
  238.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  239.                   ENDM
  240.  
  241. ;=============================================================
  242. ; Data List Entry
  243. ;=============================================================
  244.                   MACRO
  245.                   DatLstEntry &Id,&Data
  246.                   DC.L        (&Id<<24)+&Data
  247.                   ENDM
  248.     ENDIF ; __ROMDEFS__
  249.